package com.legolas.shiroconfig;

import org.apache.shiro.crypto.hash.Md5Hash;
import org.junit.Test;

public class PasswordHelper {

    public static String md5Pwd(String password,String salt){
        String md5Pwd = new Md5Hash(password,salt).toHex();
        return md5Pwd;
    }

    @Test
    public void md5PwdTest(){
        String md5Pwd = new Md5Hash("hjh","hjh").toHex();
        System.out.println(md5Pwd);
    }

}
